#include "anry-stock-config.h"
#include "anry-stock-app.h"
#include "anry-stock-frame.h"
#include "anry-stock-library-config.h"

IMPLEMENT_APP(AnryStockApp)

bool AnryStockApp::OnInit()
{
	// init anry stock library
	ANRY_STOCK_LIBRARY::InitLibrary();
		
    AnryStockFrame *frame = new AnryStockFrame( _("Hello World"), wxPoint(50, 50), wxSize(450, 340) );
    frame->Show(true);
    SetTopWindow(frame);
    
    // return parent OnInit
    return wxApp::OnInit();
}

int AnryStockApp::OnExit()
{
	// release library
	ANRY_STOCK_LIBRARY::ReleaseLibrary();
	
	return wxApp::OnExit();
}
